package cn.springdemo.service.impl;

import cn.springdemo.beans.User;
import cn.springdemo.dao.UserDao;
import cn.springdemo.service.UserService;

public class UserServiceImpl   implements UserService {
    private UserDao dao;

    @Override
    public void addUser(User user) {
     dao.User(user);
    }

    public void setDao(UserDao dao) {
        this.dao = dao;
    }
}
